package semiproject.models;

public class BookVO {
	private String bNo;
	private String bName;
	private String publisher;
	private String writer;
	private String genre;
	private int price;
	private Boolean isRent;
	private String reDate;
	
	public BookVO(String bName, String publisher, String writer, String genre, int price) {
		this.bName = bName;
		this.publisher = publisher;
		this.writer = writer;
		this.genre = genre;
		this.price = price;
	}

	public String getbNo() {
		return bNo;
	}

	public void setbNo(String bNo) {
		this.bNo = bNo;
	}

	public String getbName() {
		return bName;
	}

	public void setbName(String bName) {
		this.bName = bName;
	}

	public String getPublisher() {
		return publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	public String getWriter() {
		return writer;
	}

	public void setWriter(String writer) {
		this.writer = writer;
	}

	public String getGenre() {
		return genre;
	}

	public void setGenre(String genre) {
		this.genre = genre;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public Boolean getIsRent() {
		return isRent;
	}

	public void setIsRent(Boolean isRent) {
		this.isRent = isRent;
	}

	public String getReDate() {
		return reDate;
	}

	public void setReDate(String reDate) {
		this.reDate = reDate;
	}
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(bNo).append("/").append(bName).append("/").append(publisher).
		append("/").append(writer).append("/").append(genre).append("/").append(price).
		append("/").append(isRent).append("/").append(reDate);
		return sb.toString();
	}
}
